package me.wangcai.onlinechat.utils;

import javax.servlet.http.HttpServletRequest;

public class UserUtils {
    public static boolean isLogin(HttpServletRequest request){
        return request.getSession().getAttribute("user") != null;
    }
}
